<?php
/**
 * Created by PhpStorm.
 * User: yuliang
 * Date: 2017/6/13
 * Time: 上午11:41
 */

namespace app\common\model;


use think\Db;
use think\Model;

class Apply extends Model
{
    protected $autoWriteTimestamp = 'datetime';

    public function countNumber($id){
        $num = Db::table('jy_apply')->where(['course_id'=>$id])->count();
        return $num;
    }
}